From 67cea503832a5fa2ca4d8c891a2594027b33b77d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 31 Oct 2017 21:30:59 -0400 Subject: [PATCH] Drop gdk_get_default_root_window This is a trivial convenience function, and it is barely used. --- docs/reference/gdk/gdk4-sections.txt | 1 - gdk/gdkwindow.c | 7 ------- gdk/wayland/gdkdevice-wayland.c | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index 564d7db6ae..532211eb49 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -391,7 +391,6 @@ gdk_window_get_decorations GdkWMDecoration gdk_window_set_functions GdkWMFunction -gdk_get_default_root_window gdk_window_get_support_multidevice diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index b6d686f5b5..a1317b727a 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -3375,13 +3375,6 @@ gdk_window_get_device_position (GdkWindow *window, return window; } -GdkWindow * -gdk_get_default_root_window (void) -{ - return gdk_display_get_root_window (gdk_display_get_default ()); -} - - static gboolean gdk_window_raise_internal (GdkWindow *window) { diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index f31e07d033..575f948d82 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -592,7 +592,7 @@ gdk_wayland_device_query_state (GdkDevice *device, GdkWaylandPointerData *pointer; if (window == NULL) - window = gdk_get_default_root_window (); + window = gdk_display_get_root_window (gdk_device_get_display (device)); pointer = GDK_WAYLAND_DEVICE (device)->pointer; -- 2.30.2